3. MORE NETWORKING

Bits & Binary

cbc441862596a42484d88be73b0104a1.png

Binary is a number system (base 2 ) and bit is the basic unit for information storage.
Any number system has digits based on the base. Binary being a base 2 number system has two types of digits 0 and 1. Each of these take 1 bit of storage.
An octet is 8 binary(0,1) digits or 8 bits. Ex:10100110.

d2cb7f889a12f8a7f6bf984da6a628c7.png

1 = There is signal = High voltage
0 = There is no signal = Low voltage

Chart= 128 to 1 , 27 to 20

1997d5725bfb2892802793a6ef7d245b.png

If numbers are turned on from right to left the sum will always be equal to left number -1.


Essentially there are four things that have to exist for a network to be a network.

In any IP address there are two parts that is Network Part and Host part, the network Part is used to Identify Network and Host part used to specify number of supported hosts.

A network ID given to an address, identifies which network you’re on and a host ID is the address of the devices on the network.
(ID means IP address)

Network ID identifies which network you are on so when you receive traffic your devices know that it comes from the same network it’s directly connected to or if it needs to reply to a network that it doesn’t currently have knowledge of.

Broadcast address is used to speak to every device on the network at the same time.
It is a special IP address used to transmit messages and data packets to network systems. Network administrators verify successful data packet transmission via broadcast addresses.

Networks used to have classes like A, B, C and these classes could help identify networks, however due to the need to create different sized network CIDR or slash notation was created to cope with this problem and identify the size of the network or subnet.


Classes

ffffaa20474933bdc7a63fefa5c369a1.png

Lets take an Example : 192.168.1.1 and 192.168.2.1

Here the given Class C IP address changes at the third Octet hence differentiates the network 192.168.1.x and 192.168.2.x the .1 and .2 shows they are different networks.
Again taking the Class C IP address as an example , the ‘X’ in 192.168.1.X, is the Host part, the IPs assigned to Network Devices , it varies from 1 to 254 , assigned to host machines.

  1. In a class A address, the first octet is the network portion,so in this IP 10.1.25.1, first octet portion (10) is the network part and rest (1.25.1) are the host portion (the next 24 bits).

b21ca82a43181161463e61feeebc613b.png

  1. In a class B address, the first two octets are the network portion, ie 172.16. of IP 172.16.126.220, and rest (the next 16 bits) are for the hosts.

964fd80158f2a94ed694e7903d2b42b8.png

  1. In a class C address, the first three octets is the network portion,so in this IP 192.168.45.55, first 3 octets portion (192.168.45) are the network part and rest (55) is the host portion (the next 8 bits).

cf2e4756f6fce4449f4b3f48e342f047.png

0a8c2843e484a64ddaae07780aa238cd.png

  1. Multicasting is similar to broadcasting, but only transmits information to specific users. It is used to efficiently transmit streaming media and other types of data to multiple users at one time.

  2. Class E address are never used because they are for experimental research.


CIDR
Classless InternDomain Routing

(CIDR, pronounced like “cider”) notation is a compact way to represent an IP address along with its associated subnet mask and routing prefix.
CIDR notation = 192.168.100.0/24

/24 tells the number of binary digits turned on in our subnet masks.
In this case first 24 bits are turned on.

The /24 tells you that the first 24 bits of the IP address are used for network routing, and also that of the subnet mask contains 24 binary bits set to 1 (255.255.255.0), which also holds true for each IP address on the same subnet.

a356a7c81f9907fa407074285781c08f.png

/24=8+8+8+0 (since in 255.255.255.0 there are 3 completely turned on octets)
To calculate any subnet mask add left to right (choose highest number first).

If the first three octets of the subnet mask are 255.255.255.x then the Network ID will always contain 192.168.y.y